A Logical Semantics for Depth-First Prolog with Ground Negation

نویسنده

  • James H. Andrews
چکیده

A sound and complete semantics is given for sequential, depth-rst logic programming with a version of negation as failure. The semantics is logical in the sense that it is built up only from valuation functions (multi-valued logic interpretations in the style of Fitting and Kunen) and logically-motivated equivalence relations between formulas. The notion of predicate folding and unfolding with respect to a program (Tamaki, Sato, Levi et al.) and the universal notion of \disjunctive unfolding" (Andrews) are important elements of this semantics. The negation used is the version which returns an error indication whenever it is invoked on a non-ground goal. It is theoretically interesting that this form of negation, along with the left-to-right processing of depth-rst logic programming, can be characterized logically with four-valued interpretations over an extended alphabet of terms. The fourth truth value, N, can be read operationally as \\oundering on negation". The extension of the alphabet provides the semantics with a logical analogue of free variables. This intriguing technique may open the door to the characterization of other forms of practical negation, or of other language features involving groundness conditions. This material was published earlier as a technical report And93a] and is the expanded version, including proofs, of a paper presented at the 1993 International Logic Programming Symposium (ILPS) And93b].

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The witness properties and the semantics of the Prolog cut

The semantics of the Prolog “cut” construct is explored in the context of some desirable properties of logic programming systems, referred to as the witness properties. The witness properties concern the operational consistency of responses to queries. A generalization of Prolog with negation as failure and cut is described, and shown not to have the witness properties. A restriction of the sys...

متن کامل

Programming Towards a Roberto Barbuti ” , logical semantics for pure Prolog ’

The coincidence of the declarative and procedural interpretations of logic programs does not apply to Prolog programs, due to the depth-first left-to-right evaluation strategy of Prolog interpreters. We propose a semantics for Prolog programs based on a four-valued logic. The semantics is based on a new concept of completion analogous to Clark’s and it enjoys the nice properties of the declarat...

متن کامل

A Multiple-Valued Logical Semantics for Prolog

Abs t rac t . The coincidence of the declarative and procedural interpretations of logic programs does not apply to Prolog programs, due to the depth-first left-to-right evaluation strategy of Prolog interpreters. We propose a new semantics for Prolog programs based on a new fourvalued logic. The semantics is based on a new concept of completion analogous to Clark's and it enjoys the nice prope...

متن کامل

Sémantique Logique Et Dénotationnelle Des Interpréteurs Prolog

A gênerai method is introduced for obtaining the logical semantics (sets of axioms) and the denotational semantics (operator and fixed points) of PROLOG programs. The main idea is analogous to the idea of Van Emden, Kowalski and Apt, but now we consider standard interpreters (which are not fair and are depth first). Our conclusion is that for one PROLOG program they are at least five associated...

متن کامل

Defining Standard Prolog in Rewriting Logic

The coincidence between the model-theoretic and the procedural semantics of SLDresolution does not carry over to a Prolog system that also implements non-logical features like cut and whose depth-first search strategy is incomplete. The purpose of this paper is to present the key concepts of a new, simple operational semantics of Standard Prolog in the form of rewriting rules. We use a novel li...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993